<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
	[<xsl:for-each select="//post"><xsl:sort select="id"/>{"id":<xsl:value-of select="id"/>,"user":"<xsl:value-of select="user"/>","type":"<xsl:value-of select="type"/>","geotag":{"lat":"<xsl:value-of select="geotag/lat"/>","lon":"<xsl:value-of select="geotag/lon"/>"},"time":<xsl:value-of select="time"/>,"capacity":<xsl:value-of select="capacity"/>,"abilities":[<xsl:for-each select="abilities/skill"><xsl:if test="position() &gt; 1">,</xsl:if>"<xsl:value-of select="."></xsl:value-of>"</xsl:for-each>],<xsl:for-each select="limit"><xsl:if test="position()=1">limit:<xsl:value-of select="." />,</xsl:if></xsl:for-each>"content":<xsl:value-of select="content"/>}
	</xsl:for-each>]
	</xsl:template>
</xsl:stylesheet>